package 牛客周赛.牛客周赛Round82;

import java.util.Scanner;

/**
 * @Title: B
 * @Author 贾金博
 * @Package 牛客周赛.牛客周赛Round82
 * @Date 2025/4/8 上午10:39
 * @description: This is B
 */
public class B {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while(t -- > 0 ) {
            int n = sc.nextInt();
            for(int i = 1; i <= n; i ++ ) {
                if(i % 2 == 1) {
                    System.out.print(1 + " ");
                } else {
                    System.out.print(2 + " ");
                }
            }
            System.out.println();
        }
    }
}
